package com.lx.pc.mybatis.repository.accountlog;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.mybatis.repository.annotation.Query;
import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import com.lx.pc.domain.entity.accountlog.AccountLogEntity;

@Repository("accountLogRepository")
public interface AccountLogRepository extends MybatisRepository<AccountLogEntity, BigInteger>{

	/**
	 * 查询总数
	 */
	@Query("findByAccountLogCount")
	public int findByAccountLogCount(AccountLogEntity accountLog);
	
	/**
	 * 查询方法
	 * @param page
	 * @param size
	 * @return
	 */
	@Query("findByAccountLog")
	public List<AccountLogEntity> findByAccountLog(AccountLogEntity accountLog,Integer page,Integer size);
}
